package com.gxc.event;

import com.gxc.entity.User;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * UserRegisterEvent事件.
 *
 * @author 宫新程
 * @since 2018/12/6 10:54 AM
 */
@Getter
public class UserRegisterEvent extends ApplicationEvent {

  // 注册用户对象
  private User user;

  public UserRegisterEvent(Object source, User user) {
    super(source);
    this.user = user;
  }
}
